﻿<%@ Page Language="C#" MasterPageFile="~/admin/Admin.master" ValidateRequest="false" AutoEventWireup="true" CodeFile="A_MatHang_update.aspx.cs" Inherits="admin_A_MatHang_update" Title="Untitled Page" %>

<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>

<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolder" Runat="Server">
<table width="100%" cellspacing="1" cellpadding="3" border="0" bgcolor="#cccccc"> 
    <tr>
        <td colspan="2" align="center">
            Cập Nhật Thông Tin Sản Phẩm</td>
    </tr>
                  <tr>
                    <td style="width:30%">Mã sản phẩm</td>
                    <td style="width:70%">
                        <asp:Literal ID="lit_MaSP" runat="server"></asp:Literal>
                    </td>
                </tr> 
                 <tr>
                    <td style="width:30%">Tên sản phẩm</td>
                    <td style="width:70%">
                        <asp:TextBox ID="lit_TenSP" runat="server" Enabled="False"></asp:TextBox>
                        
                    </td>
                </tr> 
                <tr>
                    <td style="width:30%; height: 22px;">Loại sản phẩm</td>
                    <td style="width:70%; height: 22px;">
                        &nbsp;<asp:Literal ID="lit_loaisanpham" runat="server"></asp:Literal>
                        <asp:DropDownList ID="ddl_loaisanpham" runat="server" Visible="False">
                        </asp:DropDownList></td>   
                </tr>   
                <tr>
                    <td style="width:30%">Đơn Giá</td>
                    <td style="width:70%">
                        <asp:TextBox ID="lit_dongia" runat="server" Enabled="False"></asp:TextBox>( VNĐ)</td>
                </tr>           
                   <tr>
                    <td style="width:30%">Số Lượng Phiếu Bán</td>
                    <td style="width:70%">
                        <asp:TextBox ID="lit_slphieuban" runat="server" Enabled="False"></asp:TextBox>
                      
                    </td>
                </tr>   
                   <tr>
                    <td style="width:30%">Số Phiếu Còn Lại</td>
                    <td style="width:70%">
                        <asp:TextBox ID="lit_slphieuconlai" runat="server" Enabled="False"></asp:TextBox>
                   
                    </td>
                </tr>   
                   <tr>
                    <td style="width:30%">Giảm </td>
                    <td style="width:70%">
                        <asp:TextBox ID="lit_giamgia" runat="server" Enabled="False"></asp:TextBox>
              
                    </td>
                </tr>   
                <tr>
                    <td style="width:30%">Chiết Khấu</td>
                    <td style="width:70%">
                        <asp:TextBox ID="lit_chietkhau" runat="server" Enabled="False"></asp:TextBox>
                        (%)</td>
                </tr>    
                 <tr>
                    <td style="width:30%">Doanh Nghiệp</td>
                    <td style="width:70%">
                        &nbsp;<asp:Literal ID="lit_doanhnghiep" runat="server"></asp:Literal>
                        <asp:DropDownList ID="ddl_doanhnghiep" runat="server" Visible="False">
                        </asp:DropDownList></td>
                </tr>   
                 <tr>
                    <td style="width:30%">Khu Vực</td>
                    <td style="width:70%">
                        &nbsp;<asp:Literal ID="lit_khuvuc" runat="server"></asp:Literal>
                        <asp:DropDownList ID="ddl_khuvuc" runat="server" Visible="False">
                        </asp:DropDownList></td>
                </tr>  
                 <tr>
                    <td style="width:30%">Hình Ảnh</td>
                    <td style="width:70%">
                        
                           <asp:Image ID="img_Hinhanh" runat="server"  Width="80px" Height="80px"/>&nbsp;
                        <asp:FileUpload ID="FileUpload1" runat="server" class="multi" /></td>
                </tr> 
                 <tr>
                    <td style="width:30%">Bắt Đầu</td>
                    <td style="width:70%">
                        <asp:TextBox ID="lit_Batdau" runat="server" Enabled="False"></asp:TextBox>
                    </td>
                </tr>  
                <tr>
                    <td style="width:30%; height: 22px;">Kết Thúc</td>
                    <td style="width:70%; height: 22px;">
                        <asp:TextBox ID="lit_ketthuc" runat="server" Enabled="False"></asp:TextBox>
                    </td>
                </tr>   
                <tr>
                    <td style="width:30%">Tình Trạng</td>
                    <td style="width:70%">
                        <asp:DropDownList ID="ddl_tinhtrang" runat="server" OnSelectedIndexChanged="ddl_tinhtrang_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                </tr>   
                <tr>
                    <td style="width:30%">Mô Tả</td>
                    <td style="width:70%">
                        &nbsp;<ftb:freetextbox id="lit_mota" runat="server"></ftb:freetextbox></td>
                </tr>
    <tr>
        <td style="width: 30%; height: 24px">
            Ghi Chú</td>
        <td style="width: 70%; height: 24px">
            <asp:TextBox ID="txtghichu" runat="server" Height="52px" Width="421px"></asp:TextBox></td>
    </tr>
                <tr>
                    <td style="width:30%; height: 24px;"></td>
                    <td style="width:70%; height: 24px;"><asp:Button ID="btn_capnhat" runat="server" Text="Cập nhật sản phẩm" OnClick="btn_capnhat_Click"/></td>
                </tr>      
    <tr>
        <td colspan="2" align="center">
            <asp:LinkButton ID="lbt_Xoa" runat="server" OnClick="lbt_Xoa_Click">Xóa Hình</asp:LinkButton> </td>
    </tr>
    <tr>
        <td colspan="2">
            <asp:Repeater ID="Repeater1" runat="server"  OnItemDataBound="Repeater1_ItemDataBound">
            <HeaderTemplate><table align="center" cellpadding="1" cellspacing="3"></HeaderTemplate>
            <ItemTemplate>
            <tr><td>
                <asp:Image ID="hinhminhhoa" runat="server" Width="60px" Height="60px"/></td><td>
                 <asp:CheckBox ID="cb_Xoa" runat="server"  />
            <asp:HiddenField ID="hdmahinh" Value='<%#Eval("mahinh") %>' runat="server" /></td></tr>
            
            
            </ItemTemplate>
            <FooterTemplate></table></FooterTemplate>
            </asp:Repeater>
        </td>
    </tr>
            </table>
</asp:Content>

